//
//  User.h
//  Courses
//
//  Created by xxx on 1/17/15.
//  Copyright (c) 2015 wtf. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Courses-Prefix.pch"
#import "Request.h"
@interface User : NSObject

//
// username: 13818342667
// password: password
//

pStr *userId;
pStr *password;
pStr *userName;
pStr *mobile;
pStr *loginStatus;
pStr *regTime;
pStr *roleId;
pStr *loginDate;
pStr *agree;
pStr *year;
pStr *month;
pStr *day;
pStr *hiidenMobile;
pStr *yearFromBirthday;
pStr *monthFromBirthday;
pStr *dayFromBirthday;
pStr *objectId;

- (id)initWithJsonDict:(NSDictionary *)jsonDict;

+ (BOOL)isLoggedIn;

+ (BOOL)signInWithMobile:(NSString *)mobile password:(NSString *)password;
+ (BOOL)signUpWithMobile:(NSString *)mobile password:(NSString *)password verificationCode:(NSString *)verificationCode;
+ (Response* )getVerificationCodeWithMobile:(NSString *)mobile;
+ (User *)currentUser;

//注销功能
+ (void)setUserCancel;

@end
